# -*- coding: UTF-8 -*-
#coding=utf-8
import TravelDir
import StrReplace
import re

if __name__ == "__main__":
    fileAllNames = TravelDir.travelDir('.\\cleancode\\')
    fileAllNames = TravelDir.filter(fileAllNames,[".php",".html",])
    strReplaceMap ={
        "RchanpingyinwenquanchenR":"DTKEngine",
        "RgongsiguanwangR":"www.q7g.top",
        "RchanpingyinwenjianchenR":"DWE", 
        "RchanpingzhongwenjianchenR":"DTKEngine",
    }
    for fileAllName in fileAllNames:
        StrReplace.AlterFileStrReplace(fileAllName,strReplaceMap)

    fileAllNames = TravelDir.travelDir('.\\cleancode\\')
    fileAllNames = TravelDir.filter(fileAllNames,[".css",])
    strReplaceMap ={
        'test':'nihao',
    }
    for fileAllName in fileAllNames:
        StrReplace.AlterFileStrReplace(fileAllName,strReplaceMap)